package com.project.controller;

import com.github.pagehelper.PageInfo;
import com.project.bean.NoteBean;
import com.project.service.INoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@RestController
@RequestMapping("note")
public class NoteController {
    @Autowired
    private INoteService service;
    @RequestMapping("findByItem")
    public PageInfo<NoteBean> findByItem(int pageNO, LocalDate startDate, LocalDate endDate){
       return service.findByItem(pageNO, startDate, endDate);
    }
}
